#ifndef __CFileExporter_H__
#define __CFileExporter_H__

#include "IOutputStreamer.h"
#include <string>
#include <iostream> 

/**
Write the Aus to a file
*/
class CFileExporter: public  IOutputStreamer
{
public:
	/**
	c'tor.
	Create an output file
	*/
	CFileExporter(std::string sAudioFileName, std::string sVideoFileName);
	virtual ~CFileExporter(void);
	
	/**
	write the aus from the list into the file
	@param cAUBuilder- an AU builder that holds the AUS
	*/
	virtual void outputAUs(IAUBuilder* cAUBuilder);
	
private:
	void _writeAus(std::vector<CDynamicArray*>& aus, FILE* pFile);


	FILE* m_pAudioFile;
	FILE* m_pVideoFile;

};

#endif //__CFileExporter_H__
